namespace SharpTalk.Client.WpfApplication.ViewModels
{
    using Views;
    using System.Windows.Input;

    public sealed class PasswordViewModel : ViewModelBase<IPasswordView>
    {
        private readonly ICommand _okCommand = null;

        public PasswordViewModel(IPasswordView view) 
            : base(view)
        {
            View.DataContext = this;
            View.SetIcon( Helpers.LoadImage("keys_16.png") );
        }

        public byte[] PasswordHash
        {
            get { return View.PasswordHash; }
        }

        public ICommand OkCommand
        {
            get { return _okCommand ?? new BindableCommand<object>(OnValidate); }
        }
       
    }
}